package com.wms.wms.mapper.product;

import com.wms.wms.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Chl
 * @version 1.0
 * @date 2019/12/18 12:15
 */
@Component
@Mapper
public interface ProductMapper extends tk.mybatis.mapper.common.Mapper<Product> {

    Product selectProductById(String id);

    int insertProduct(Product product);

    int updateProduct(Product product);

    List<Product> selectProductByName(String name);
    List<Product> queryIdByType(@Param("type_id") String type_id);

    List<Product> queryByType(String id);

    Integer queryGuaranteeTime(@Param("id") String id);
}
